package com.poulpicious.ethanj.states;

import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.BasicGameState;
import org.newdawn.slick.state.StateBasedGame;

import com.poulpicious.ethanj.util.GameData;

public class MainMenuState extends BasicGameState{

	@Override
	public void init(GameContainer gc, StateBasedGame sbg) throws SlickException {
	}

	@Override
	public void render(GameContainer gc, StateBasedGame sbg, Graphics g) throws SlickException {
	}

	@Override
	public void update(GameContainer gc, StateBasedGame sbg, int delta) throws SlickException {
		GameState gs = new GameState();
		sbg.addState(gs);
		gs.init(gc, sbg);
		sbg.enterState(GameData.GAME);
	}

	@Override
	public int getID() {
		return GameData.MAIN_MENU;
	}

}
